package cn.ruituo.adv5;

import java.io.FileWriter;
import java.io.IOException;

public class FileWRiterTest {
    public static void main(String[] args) {
        try {
            FileWriter fw=new FileWriter("E:\\temp\\java72\\advance\\2021.txt",true);
            fw.write(21016);
            fw.write(97);
            fw.write("\r\n");
            fw.write("教育改变生活");
            fw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
